package io.github.luons.mediator.core.spi.cube;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * BaseColumn
 *
 * @author : luons
 */
@Data
public class BaseColumn {

    /**
     * column
     */
    protected String column;

    /**
     * alias
     */
    protected String alias;

    /**
     * alias is null return column
     *
     * @return String
     */
    public String getAliasDefault() {
        return StringUtils.isNotBlank(this.getAlias()) ? this.getAlias() : this.getColumn();
    }
}
